package org.japo.java.entities;

import java.beans.PropertyChangeSupport;

/**
 *
 * @author José A. Pacheco Ondoño
 */
public class RotuloBis {
    public static final String PROP_FAMILIA = "PROP_FAMILIA";
    public static final String PROP_NEGRITA = "PROP_NEGRITA";
    public static final String PROP_CURSIVA = "PROP_CURSIVA";
    public static final String PROP_TALLA = "PROP_TALLA";
    // Propiedades
    private String familia;
    private boolean negrita;
    private boolean cursiva;
    private int talla;
    private final transient PropertyChangeSupport propertyChangeSupport = new java.beans.PropertyChangeSupport(this);

    public String getFamilia() {
        return familia;
    }

    public void setFamilia(String familia) {
        java.lang.String oldFamilia = this.familia;
        this.familia = familia;
        propertyChangeSupport.firePropertyChange(PROP_FAMILIA, oldFamilia, familia);
    }

    public boolean isNegrita() {
        return negrita;
    }

    public void setNegrita(boolean negrita) {
        boolean oldNegrita = this.negrita;
        this.negrita = negrita;
        propertyChangeSupport.firePropertyChange(PROP_NEGRITA, oldNegrita, negrita);
    }

    public boolean isCursiva() {
        return cursiva;
    }

    public void setCursiva(boolean cursiva) {
        boolean oldCursiva = this.cursiva;
        this.cursiva = cursiva;
        propertyChangeSupport.firePropertyChange(PROP_CURSIVA, oldCursiva, cursiva);
    }

    public int getTalla() {
        return talla;
    }

    public void setTalla(int talla) {
        int oldTalla = this.talla;
        this.talla = talla;
        propertyChangeSupport.firePropertyChange(PROP_TALLA, oldTalla, talla);
    }
}
